﻿<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>[[${session.userLookCompany.companyInfo.companyName}]]-伯乐网</title>
    <link href="style/css/style.css" type="text/css" rel="stylesheet">
    <link href="style/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="style/css/popup.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="style/js/jquery.1.10.1.min.js"></script>
    <script src="style/js/jquery.lib.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="style/js/ajaxfileupload.js"></script>
    <script src="style/js/additional-methods.js" type="text/javascript"></script>
    <script src="style/js/ajaxCross.json" charset="UTF-8"></script>
    <!--layer.js-->
    <script type="text/javascript" src="style/js/layer/layer.js"></script>
</head>

<body>
<div id="body">
    <!--引入顶部导航栏-->
    <div id="header" th:fragment="common_top_nav">
        <div class="wrapper">
            <a href="/index" class="logo">
                <img src="style/images/logo.png" width="229" height="43" alt="伯乐网-专注互联网招聘"/>
            </a>
            <ul class="reset" id="navheader">
                <li>
                    <a href="/index">首页</a>
                </li>
                <li>
                    <a href="companylist.html" style="margin-left: 50px">搜索公司</a>
                </li>
                <li th:if="${session.user != null}" class="jianli">
                    <a href="javascript:void(0)" rel="nofollow" style="margin-left: 50px">我的简历</a>
                </li>
            </ul>
            <!--未登陆显示登陆注册-->
            <ul class="loginTop" th:if="${session.user}==null">
                <li>
                    <a href="/loginPage" rel="nofollow">登录</a>
                </li>
                <li>|</li>
                <li>
                    <a href="/registerPage" rel="nofollow">注册</a>
                </li>
            </ul>
            <!--已经登陆显示下拉列表-->
            <dl class="collapsible_menu" th:if="${session.user}!=null">
                <dt>
                    <span th:text="${session.user.phone}">路人甲</span>
                    <span class="red dn" id="noticeDot-0"></span>
                    <i></i>
                </dt>
                <dd class="jianli">
                    <a rel="nofollow" href="javascript:void(0)">我的简历</a>
                </dd>
                <dd>
                    <a th:href="'/selectCollections?userId='+${session.user.id}">我收藏的职位</a>
                </dd>
                <dd>
                    <a th:href="'/myToudi?userId='+${session.user.id}">我投递的职位 <span id="noticeNo" class="red dn">(0)</span></a>
                </dd>
                <dd>
                    <a href="/setting">帐号设置</a>
                </dd>
                <dd class="logout">
                    <a rel="nofollow" href="/logout">退出</a>
                </dd>
            </dl>
            <script>
                //前往简历页面
                $(".jianli").click(function () {
                    //获取当前用户ID
                    var userId = $("#userId").val();
                    location.href = "/jianli?userId=" + userId;
                });
            </script>
        </div>
    </div>
    <!--顶部导航栏 end-->

    <div id="container">
        <div class="clearfix">

            <div class="content_l">
                <!--公司logo、基本信息模块-->
                <div class="c_detail">
                    <div style="background-color:#fff;" class="c_logo">
                        <a id="logoShow" href="javascript:void(0)">
                            <input type="hidden" id="hiddenLogo" th:value="${session.userLookCompany.companyInfo.companyLogo}">
                            <img id="logo" width="190" height="190" alt="公司logo" src="style/images/logo_default.png">
                            <script>
                                $(function () {
                                    //设置logo  /Users/zzr/images/companyPhoto/
                                    $("#logo").attr("src", "companyLogo/" + $("#hiddenLogo").val());
                                })
                            </script>
                        </a>
                    </div>

                    <div class="c_box companyName" style="padding-top: 25px;">
                        <h2 th:text="${session.userLookCompany.companyInfo.companyName}" id="oldName" style="width: auto;">才华有限公司</h2>
                        <img src="style/images/valid.png" width="15" height="19" alt="伯乐认证企业"/>
                        <div class="clear"></div>

                        <div class="clear oneword">
                            <img width="17" height="15" src="style/images/quote_l.png">&nbsp;
                            <span th:text="${session.userLookCompany.companyInfo.reserved2}" id="oldReserved">公司愿景</span> &nbsp;
                            <img width="17" height="15" src="style/images/quote_r.png">
                        </div>

                        <!--已选择标签-->
                        <input type="hidden" id="hiddenTags" th:value="${session.userLookCompany.companyTags.companyTag}">
                        <ul style="overflow:auto" id="hasLabels" class="reset clearfix">
                            <!--将数据库中的标签显示在页面上-->
                            <script>
                                //获取所有标签字符串
                                var tags = $("#hiddenTags").val();
                                //字符串分割成为数组
                                var tagArr = new Array(); //定义一数组
                                tagArr = tags.split(","); //字符分割
                                //将标签循环显示在页面上
                                for (i = 0; i < tagArr.length; i++) {
                                    //追加节点
                                    $("#hasLabels").append('<li><span>' + tagArr[i] + '</span></li>');
                                }
                            </script>
                            <!--<li style="border: none;"><a href="javascript:void(0)" id="link">编辑</a></li>-->
                        </ul>

                    </div>
                    <div class="clear"></div>
                </div>
                <!--公司logo、基本信息模块end-->
                <div class="c_breakline"></div>

                <!--产品模块-->
                <div id="Product">

                    <div class="product_wrap">
                        <!--有产品-->
                        <dl id="haveProduct" class="c_product">
                            <dt>
                                <h2><em></em>公司产品</h2>
                            </dt>
                            <dd>
                                <input type="hidden" id="hiddenProductLogo"
                                       th:value="${session.userLookCompany.companyProduct.productLogo}">
                                <img width="380" height="220" id="productLogo" src="style/images/product_default.png">
                                <script>
                                    $(function () {
                                        //设置产品logo  /Users/zzr/images/companyPhoto/
                                        $("#productLogo").attr("src", "productLogo/" + $("#hiddenProductLogo").val());
                                        $("#resetProductLogo").attr("src", "productLogo/" + $("#hiddenProductLogo").val());
                                    })
                                </script>

                                <div class="cp_intro">
                                    <!--产品名-->
                                    <h3><a target="_blank" id="oldProductName" href="javascript:void(0)"
                                           th:text="${session.userLookCompany.companyProduct.productName}">产品名称 </a></h3>
                                    <div class="scroll-pane" style="overflow: hidden; padding: 0px; width: 260px;">
                                        <!--产品URLL-->
                                        <input type="hidden" id="oldProductUrl"
                                               th:value="${session.userLookCompany.companyProduct.productUrl}">
                                        <div class="jspContainer" style="width: 260px; height: 140px;">
                                            <div class="jspPane" style="padding: 0px; top: 0px; width: 260px;">
                                                <!--产品介绍-->
                                                <div id="oldProductDescribe"
                                                     th:text="${session.userLookCompany.companyProduct.productDescribe}">
                                                    产品介绍
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </dd>
                        </dl>

                    </div>
                </div>
                <!-- 产品模块 end -->

                <!--公司介绍模块-->
                <div id="Profile">
                    <div class="profile_wrap">
                        <!--有介绍-->
                        <dl id="zs" class="c_section">
                            <dt>
                                <h2><em></em>公司介绍</h2>
                            </dt>
                            <dd>
                                <div class="c_intro" id="oldCompanyDescribe"
                                     th:text="${session.userLookCompany.companyInfo.companyDescribe}">公司介绍
                                </div>
                            </dd>
                        </dl>
                    </div>
                </div>
                <!-- 公司介绍模块 end -->

                <!--[if IE 7]> <br/> <![endif]-->

                <!--招聘职位-->
                <dl id="noJobs" class="c_section">
                    <dt>
                        <h2><em></em>招聘职位</h2>
                    </dt>
                    <dd class="links" th:each="position : ${session.userLookCompany.positionList}" style="padding-top: 20px;padding-bottom: 0px;">
                        <script>
                            function see(t) {
                                //获取职位ID
                                var nodes=$(t).children();
                                var positionId=$(nodes[0]).val();
                                window.open("/jobs?positionId="+positionId);
                            }
                        </script>
                        <form onclick="see(this)" style="margin-bottom: 10px">
                            <!--隐藏域存放职位ID-->
                            <input type="hidden" th:value="${position.id}"  id="positionId">
                            <ul class="reset my_jobs">
                                <li style="margin-bottom: 0px">
                                    <h3>
                                        <a>[[${position.positionName}]]</a>
                                        <span>[[${position.workCity}]]</span>
                                    </h3>
                                    <div>[[${position.jobType}]] / [[${position.leastSalary}]]K-[[${position.mostSalary}]]K
                                        / [[${position.workSuffer}]] / [[${position.education}]]
                                    </div>
                                    <div class="c9">发布时间： [[${position.publishTime}]]</div>
                                    <div>
                                    </div>
                                </li>
                            </ul>
                        </form>


                    </dd>
                </dl>
                <div id="flag"></div>
            </div>

            <div class="content_r">

                <!--地点等模块-->
                <div id="Tags">
                    <!--展示数据-->
                    <div id="c_tags_show" class="c_tags solveWrap">
                        <table>
                            <tbody>
                            <tr>
                                <td width="45">地点</td>
                                <td id="oldCompanyCity" th:text="${session.userLookCompany.companyInfo.companyCity}">上海</td>
                            </tr>
                            <tr>
                                <td>领域</td>
                                <!-- 支持多选 -->
                                <td id="oldCompanyFiels" th:text="${session.userLookCompany.companyInfo.companyField}">移动互联网
                                </td>
                            </tr>
                            <tr>
                                <td>规模</td>
                                <td id="oldCompanyScale" th:text="${session.userLookCompany.companyInfo.companyScale}">
                                    150-500人
                                </td>
                            </tr>
                            <tr>
                                <td>主页</td>
                                <td>
                                    <a rel="nofollow" target="_blank" id="oldCompanyUrl"
                                       th:href="${session.userLookCompany.companyInfo.companyUrl}"
                                       th:text="${session.userLookCompany.companyInfo.companyUrl}">www.zzr666.cn</a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- 地点等模块 end -->

                <!--融资模块-->
                <dl class="c_section c_stages">
                    <dt>
                        <h2><em></em>融资阶段</h2>
                    </dt>
                    <dd>
                        <ul class="reset stageshow" id="showCompanyStage">
                            <li>目前阶段：<span class="c5" id="oldCompanyStage"
                                           th:text="${session.userLookCompany.companyInfo.companyStage}">发展阶段</span></li>
                        </ul>

                    </dd>
                </dl>
                <!-- end .c_stages -->

                <!--创始团队模块-->
                <div id="Member">
                    <!--有创始团队-->
                    <dl class="c_section c_member">
                        <dt>
                            <h2><em></em>创始团队</h2>
                        </dt>
                        <dd>
                            <!--一个完整的创始人展示框、编辑框-->
                            <div class="member_wrap" th:each="founder : ${session.userLookCompany.companyInitList}">
                                <!-- 显示创始人 -->
                                <div class="member_info">
                                    <div class="m_portrait">
                                        <div></div>
                                        <!--隐藏于存放头像-->
                                        <input type="hidden" id="hiddenFounderPhoto" th:value="${founder.founderPhoto}">
                                        <img width="120" height="120" th:src="'founderPhoto/'+${founder.founderPhoto}">
                                    </div>
                                    <div class="m_name" th:text="${founder.founderName}" style="margin-top:35px">创始人姓名
                                    </div>

                                    <div class="m_position" th:text="${founder.founderPosition}">创始人职位</div>
                                    <div class="m_intro" th:text="${founder.founderDescribe}">创始人简介</div>
                                    <!--隐藏域存放创始人ID-->
                                    <input type="hidden" th:value="${founder.id}">
                                    <!--隐藏域存放公司ID-->
                                    <input type="hidden" th:value="${founder.companyId}">
                                    <!--隐藏域存放公司名称-->
                                    <input type="hidden" th:value="${founder.companyName}">
                                </div>
                            </div>
                            <script>
                                //点击编辑按钮触发的函数
                                function editForm(t) {
                                    alert($(t).next().next().text());
                                }

                            </script>
                        </dd>
                    </dl>
                </div>
                <!-- 创始团队模块 end -->
            </div>
        </div>

        <script src="style/js/company.min.js" type="text/javascript"></script>
        <script>
            var avatar = {};
            avatar.uploadComplate = function (data) {
                var result = eval('(' + data + ')');
                if (result.success) {
                    jQuery('#logoShow img').attr("src", ctx + '/' + result.content);
                    jQuery.colorbox.close();
                }
            };
        </script>
        <div class="clear"></div>
        <input type="hidden" value="d1035b6caa514d869727cff29a1c2e0c" id="resubmitToken">
        <a rel="nofollow" title="回到顶部" id="backtop" style="display: inline;"></a>
    </div>
    <!-- end #container -->
</div>
<!-- end #body -->
<!--引入页面底部备案号-->
<div th:replace="public/publicFragment::footer_nav"></div>

<script src="style/js/core.min.js" type="text/javascript"></script>
<script src="style/js/popup.min.js" type="text/javascript"></script>

</body>

</html>